package kitrobot.com.bed.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RadioButton;

import kitrobot.com.bed.Activity.BeddetailActivity;
import kitrobot.com.wechat_bottom_navigation.R;

/**
 * on 2017/5/8.
 * 类的描述:
 */

public class HomeFragment extends Fragment {
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.video, container, false);
        RadioButton radioButton= (RadioButton) view.findViewById(R.id.rb_vd1);
        radioButton.setOnClickListener(new View.OnClickListener(){

            @Override
            public void onClick(View view) {
                Intent intent=new Intent(getActivity(), BeddetailActivity.class);
                startActivity(intent);
            }
        });
        return view;
    }
}
